
import request from '@/utils/request'
// 获取品牌信息
export const reqTradeMarkList = (page, limit) => request({ url: `/admin/product/baseTrademark/${page}/${limit}`, method: 'get' })

// 修改：携带品牌名称、logo、id
// 新增：携带品牌名称、logo
export const reqAddOrUpdateTradeMark = (tradeMark) => {
    // 带给服务器得数据携带ID --- 修改
    if (tradeMark.id) {
        return request({ url: '/admin/product/baseTrademark/update', method: 'post', data: tradeMark })
    } else {
        return request({ url: '/admin/product/baseTrademark/save', method: 'post', data: tradeMark })
    }
}

// 删除品牌信息
export const reqDeleteTradeMark = (id) => request({ url: `/admin/product/baseTrademark/remove/${id}`, method: 'delete' })